package chapter5.homework;

/**
 * 作业1: 一个重载的演示程序
 *
 * @author 何楚 2604688
 */
public class MyOverloading {
    public static void main(String[] args) {
        MyCalculator calc = new MyCalculator();
        System.out.println("5 + 7 = " + calc.add(5, 7));
        System.out.println("3.14 + 2.71 = " + calc.add(3.14, 2.71));
        System.out.println("10 + 5.5 = " + calc.add(10, 5.5));
        System.out.println("7.2 + 3 = " + calc.add(7.2, 3));
    }
}
